#include"DoubleLinkList.h"

int main()
{
	DLinkList L1;
	DLinkList L2;
	
	/*输入输出*/
	if (CreateList(L1))
		cout << "输入成功" << endl;
	else
		cout << "输入失败" << endl;
	if (DisplayList(L1))
		cout << "输出成功" << endl;
	else
		cout << "输出失败" << endl;

	if (CreateList(L2))
		cout << "输入成功" << endl;
	else
		cout << "输入失败" << endl;
	if (DisplayList(L2))
		cout << "输出成功" << endl;
	else
		cout << "输出失败" << endl;

	cout << endl;

	cout << "俩个大整数加法：" << endl;
	DLinkList L3 = add(L1, L2);
	DisplayList(L3);

	cout << "俩个大整数减法：" << endl;
	DLinkList L4 = sub(L1, L2);
	DisplayList(L4);

	cout << "俩个大整数乘法：" << endl;
	DLinkList L5 = multiply(L1, L2);
	DisplayList(L5);


	/*注明：大整数除法暂时有bug*/
	//cout << "俩个大整数除法：" << endl;
	//DLinkList L6 = divide(L1, L2);
	//DisplayList(L6);
	DestroyList(L1);
	DestroyList(L2);
	DestroyList(L3);
	DestroyList(L4);
	DestroyList(L5);
	return 0;
}